#ifndef __DELAY_H__
#define __DELAY_H__

#include <stdint.h>
#include <stdbool.h>

#define SYS_CLOCK 1000000
#define CLOCK_PER_SEC 500 //~2ms
#define COUNT_RELOAD (SYS_CLOCK / CLOCK_PER_SEC + 7)

void delay_Init(void);
void delay(uint16_t time, bool continued);

#endif
